import { Pagination } from 'antd';
import { useLibStore } from './useLibStore';

export function LibListPager() {
  const { total, page, size, setPage } = useLibStore();
  return (
    <Pagination
      total={total}
      current={page}
      pageSize={size}
      onChange={setPage}
      className='lib-pager'
    />
  );
}
